package com.niiwoo.civet.trade.constant;

/**
 * Created by zhangwanli on 2017/11/12.
 */
public class TradeRedisKey {

    /**
     * 自动投资人队列名前缀,按标的期限单位，期限起止划分具体队列
     * 一级目录
     */
    public static final String AUTO_INVESTORS_QUEUE_PREFIX = "auto-investors:";
    /**
     * 自动投资产品类型分类
     * 二级目录
     */
    public static final String AUTO_INVESTORS_QUEUE_PRODUCT = "product:";
    /**
     * 自动投资期限分类
     * 二级目录
     */
    public static final String AUTO_INVESTORS_QUEUE_DEANLINE="deadline:";
    /**
     * 自动投资还款方式分类
     * 二级目录
     */
    public static final String AUTO_INVESTORS_QUEUE_REPAYMENT="repayment:";
    /**
     * 自动投资利率类型分类
     * 二级目录
     */
    public static final String AUTO_INVESTORS_QUEUE_RATE="rate:";
    
    /**
     * 批量投资锁，用于控制有处理中的批量投资，则不能再次提交批量投资
     */
    public static final String BATCH_INVESTING_LOCK = "batch-investing-lock:";
    /**
     * 自动投资人休息区(投资人本身原因：免密未开启、余额不足等移除自动投资队列移至此队列)队列，定时任务较长时间后还原回投资人队列
     */
    public static final String AUTO_INVESTORS_LOUNGE = "auto-investors-lounge";
    /**
     * 自动投资人暂存区(设置原因：利率、期限等不匹配标的的投资人在当前标的MQ消息消费期间移到该队列，当前标的完成后还原)队列
     */
    public static final String AUTO_INVESTORS_STASH = "auto-investors-stash";
    /**
     * 自动投资标的暂存区(该标的未找到投资人,进入该暂存区,定时任务再放回MQ)
     */
    public static final String AUTO_INVEST_PROJECT_STASH = "auto-invest-project-stash";
    /**
     * 标的投放渠道锁
     */
    public static final String PROJECT_PUT_CHANNEL_LOCK = "lock:project-put-channel-lock-";
    /**
     * 债权转让用户首次点击显示红点标识
     */
    public static final String CREDITOR_IS_SHOW = "credit-is-show-click";
    /**
     * 我的投资显示new标识 key
     */
    public static final String INVEST_FRIST_CLICK_SHOW = "invest-frist-click-show";
    /**
     * 债权转让用户新功能页面key
     */
    public static final String FUNCTION_PAGE_IS_SHOW = "function-page-is-show-click";
    /**
     * 债权转让用户首次点击显示红点标识-我首页
     */
    public static final String MYSELF_CREDITOR_IS_SHOW = "myself-creditor-is-show";
    /**
     * 可转让债权页-可转让债权的条件弹窗
     */
    public static final String TRANSFERABLE_CREDIT_WINDOW = "transferable-credit-window";
    /**
     * 新手引导页用户点击我的投资页面
     */
    public static final String NOVICE_GUIDE_WINDOW = "novice-guide-window-click";


    /**
     * 个人极速借自动投资，投资人redis，zset队列的key
     */
    public static final String PERSONAL_SPEEDLOAN_AUTO_INVESTORS = "auto-investors:personal";
    /**
     * 机构极速借自动投资，投资人redis，zset队列的key
     */
    public static final String ORG_SPEEDLOAN_AUTO_INVESTORS = "auto-investors:org";
    /**
     * 你我云贷自动投资，投资人redis，zset队列的key
     */
    public static final String YUNDAI_AUTO_INVESTORS = "auto-investors:yundai";
    /**
     * 卡易借自动投资，投资人redis，zset队列的key
     */
    public static final String CARD_EASY_LOAN_AUTO_INVESTORS = "auto-investors:cardeasy";

    /**
     * 自动投资资金不足休息区
     */
    public static final String REST_AREA_NOT_SUFFICIENT_FUNDS = "auto-rest-area:not-sufficient-funds";
    
    /**
     * 自动投资必须使用红包没有红包或者红包最低使用金额+100>余额
     */
    public static final String REST_AREA_NO_RED_ENVELOPES = "auto-rest-area:no-red-envelopes";
    
    /**
     * 自动投资已经达到风险预警额度
     */
    public static final String REST_AREA_RISK_FUND = "auto-rest-area:risk-fund";
    
    /**
     * 系统异常或者未知异常进入队列
     */
    public static final String REST_AREA_UNKNOW = "auto-rest-area:unknow";

    /**
     * 标的待发布转发布
     */
    public static final String PROJECT_WAIT_PUBLISH_TO_PUBLISH = "project-wait-publish-to-publish-lock:";

    /**
     * 分标发标锁
     */
    public static final String ALLOT_CHANNEL_LOCK = "allot-channel-lock";

    /**
     * 分标发标配置更新锁
     */
    public static final String ALLOT_CHANNEL_CONFIG_REFRESH_LOCK = "allot-channel-config-refresh-lock";

    
}
